export default class Base {

  constructor(props = {}) {
    this.update(props);

  }

  update(key, value) {
    if (typeof key === 'object') {
      Object.keys(key).forEach(item => {
        this.update(item, key[item]);
      });
    } else {
      this[key] = value;
    }
  }

}
